<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh">
<head>
<title>源代码</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="sourceLineNo">001</span>package org.teapot.db.orm.mdl;<a name="line.1"></a>
<span class="sourceLineNo">002</span><a name="line.2"></a>
<span class="sourceLineNo">003</span>public class Hav extends Condition {<a name="line.3"></a>
<span class="sourceLineNo">004</span><a name="line.4"></a>
<span class="sourceLineNo">005</span>  /*<a name="line.5"></a>
<span class="sourceLineNo">006</span>   * 在 SQL 中增加 HAVING 子句原因是，WHERE 关键字无法与合计函数一起使用。<a name="line.6"></a>
<span class="sourceLineNo">007</span>   * SELECT column_name, aggregate_function(column_name)<a name="line.7"></a>
<span class="sourceLineNo">008</span>   * FROM table_name<a name="line.8"></a>
<span class="sourceLineNo">009</span>   * WHERE column_name operator value<a name="line.9"></a>
<span class="sourceLineNo">010</span>   * GROUP BY column_name<a name="line.10"></a>
<span class="sourceLineNo">011</span>   * HAVING aggregate_function(column_name) operator value<a name="line.11"></a>
<span class="sourceLineNo">012</span>   */<a name="line.12"></a>
<span class="sourceLineNo">013</span>}<a name="line.13"></a>




























































</pre>
</div>
</body>
</html>
